import {defineComponent} from "vue";
import style from "@/page/portal/notice/css/index.module.css";

export default defineComponent({
    props:{
        handleCurrentChange:Function,
        total:Number
    },
    setup() {
        return (props) => {
            return <>
                <div className={style.pagination}>
                    <el-pagination
                        small
                        background
                        layout="prev, pager, next"
                        total={props.total}
                        onCurrentChange={(val) => {
                                props.handleCurrentChange(val)
                        }
                        }
                    />
                </div>
            </>
        }
    }
})